package com.Decorator;

/**
 * Created by Administrator on 2018/11/5/005.
 */
public class Test {

    public static void main(String[] args) {
        Component component = new ConcreteComponent2(new ConcreteComponent1(new ConcreteComponent()));
        component.doSomething();
    }
}
